/*
 * @Author: your name
 * @Date: 2022-03-17 10:27:00
 * @LastEditTime: 2022-03-18 09:48:56
 * @LastEditors: Please set LastEditors
 * @FilePath: \VUE\app\src\store\index.js
 */
//vuex 仓库
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

import home from './home'
import search from './search'
import detail from './detail'
import shopCart from './shopCart'
import user from './User'


//暴露一个store实例
export default new Vuex.Store({
    //实现vuex仓库模块化开发存储数据
    modules:{
        home,
        search,
        detail,
        shopCart,
        user,
    }
})
 